<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../libs/jquery-1.12.4.min.js"></script>
    <script src="../libs/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <script src="../libs/jquery.twbsPagination.js"></script>
</head>

<body>
    <ul id="pagination" class="pagination-sm"></ul>
</body>

</html>
<script>
    $('#pagination').twbsPagination({
        // 总页数
        totalPages: 100,
        // 可见页数
        visiblePages: 10,
        // 默认第一页
        initiateStartPageClick: 1,

        first: "第一页",
        prev : "前一页",
        next: "后一页",
        last: "最后一页",
        onPageClick: function (event, page) {
            console.log(page);
        }
    });
</script>